import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import less from 'less'

//Vant引入
import Vant from 'vant';
import 'vant/lib/index.css';
import { Lazyload } from 'vant';


//地图的引入
//import globalComponents from './assets/commonJs/globalComponents.js'  //全局组件配置文件
//import VueAMap from 'vue-amap';
//Vue.use(VueAMap);
//Vue.use(globalComponents)  //插件使用声明
//VueAMap.initAMapApiLoader({
//  key: '8eda9cd79b5dcc6bb6a022519fe2c8ef',
//  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
//  v: '1.4.4'
//});

import AMap from 'vue-amap';
Vue.use(AMap);
  // 初始化vue-amap
AMap.initAMapApiLoader({
  // 高德key
  key: '8eda9cd79b5dcc6bb6a022519fe2c8ef',
  // 插件集合 （插件按需引入）
  plugin: ['AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PlaceSearch', 'AMap.Geolocation', 'AMap.Geocoder'],
  v: '1.4.4',
  uiVersion: '1.0'
});

Vue.use(Lazyload);
Vue.use(Vant);
Vue.use(less);
Vue.config.productionTip = false



new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
